-- GENERATED SPELL FOR [Blackwing Technician] --


function spell0_13996(pUnit, Event) --@Bomb,n/a--
pUnit:FullCastSpellOnTarget(22334,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13996', 1500, 1)
end

function spell1_13996(pUnit, Event) --@Bottle of Poison,n/a--
pUnit:FullCastSpellOnTarget(22335,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13996', 30000, 1)
end

function Sorts_13996(pUnit, Event)
local choix_sorts_13996 = math.random(0, 1)
if choix_sorts_13996 == 0 then
pUnit:RegisterEvent('spell0_13996', 1, 1)
end
if choix_sorts_13996 == 1 then
pUnit:RegisterEvent('spell1_13996', 1, 1)
end
end

function mob13996_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13996', math.random(1500, 3000), 1)
end

function mob13996_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13996_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13996_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13996, 1, 'mob13996_Action')
RegisterUnitEvent(13996, 2, 'mob13996_Leave')
RegisterUnitEvent(13996, 3, 'mob13996_Kill')
RegisterUnitEvent(13996, 4, 'mob13996_Die')
